import $axios from "../utils/request"
//验证手机号是否可以注册
export function doCheckPhone(data) {
   return  $axios.post('/user/docheckphone',data)
}
//发送验证码
export function doSendMsg(data) {
   return  $axios.post('/user/dosendmsgcode',data)
}
//验证验证码
export function doCheckCode(data) {
   return  $axios.post('/user/docheckcode',data)
}
//注册
export function doRegister(data) {
   return  $axios.post('/user/dofinishregister',data)
}
//登录
export function doLogin(data) {
   return  $axios.post('/user/login',data)
}
//修改密码
export function doUpDate(params) {
   return  $axios.get('/user/updatePassword',{params})
}
//获取用户信息
export function doInfo(params) {
   return  $axios.get('/user/info',{params})
}

